home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Overload Trio 2
/
Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO
/
dir31
/
pcmm.zip
/
DEVELOP.DOC
< prev
next >
Wrap
Text File
|
1993-10-30
|
5KB
|
106 lines
DEVELOP.DOC Page 1 of 2
THE PC SPEAKER
My Personal Computer is great when it comes to crunching numbers in a
Spreadsheet, writing letters, creating graphics or driving external
speakers with a sound card. What was that last one? External speakers?
Just a minute, I know I have an internal speaker. I hear the thing
'BEEP' at me when I play a game or when I make a mistake. Why can't I
use it for something useful? Sometimes I feel there is a long range
conspiracy. I have to buy something else every time I turn around.
More hard disk space, more RAM, several sizes and densities of floppy
disks and NOW a sound card with external speakers. I just ain't gonna
do it.
The designers didn't make it easy to do and furthermore, it is hard to
find out what they did do when it comes to sound on the internal
PC speaker. I have bought and read more books on sound and found out
absolutely nothing when it comes to using the sound speaker I have.
I did buy one of Peter Norton's books that gave me a clue. So I
followed through on that. I experimented until it slowly came to me
that I could control this silly thing.
The sound quality is not the greatest in the world, but it does sound
like what I wanted. And I already have it. I don't have to buy another
piece of hardware. So was born 'PC MUSIC MAKER'. Now that I have
created my own, I am sure I will find several others out there. I just
wasn't looking in the right place. Any way.....
You CAN change the frequency of the sound your PC speaker. You CAN
change how long it will play and you CAN change how long it will be
silent. Therefore you can make music and sound effects. And if you
don't have one of those "others out there", You can use mine.
SOUND DRIVER PROGRAM
This program is written in assembler language for use by software
developers. I searched high and low for some guidance on how to
provide sound for my programs. Each book I bought gave me a little
piece. Several books gave me programs to play their sounds, but,
none really explained the method. They kept all that good stuff
hidden. I include all the theory along with diagrams and annotated
routines that I have developed to help you make use of this great
enhancement for your programs.
DEVELOP.DOC Page 2 of 2
I have three (3) levels of marketing for my SOUND DRIVER:
1. ($7.95) The package I call PC MUSIC MAKER. You can type in
songs and/or sound effects. Then save, load, edit and play
them. it is great fun, but it doesn't help you to put them
into your programs. However, I have included a small execution
module on this disk called PCREADY.EXE. To use this module:
A. Install PCMM on your hard disk in directory PCMM.
B. Modify AUTOEXEC.BAT file to include the following:
CD\PCMM
PCREADY
C. When you turn on your system, you will be notified by
the AMBULANCE sound that your system is ready to go.
D. Make a phone call while your system is 'booting'. When
you hear the PCREADY sound you can hang up.
2. ($14.95) The SOUND DRIVER in object form that can be LINKED
to your program. There are two rountines in the SOUND DRIVER.
A. PURGER strips all non-sound commands from the input
buffer and stores only the sound commands in SBuffer.
B. SOUNDDVR is the routine that controls the PC speaker.
from commands in the SBuffer.
C. Calling sequences will be provided with the package.
3. ($29.95) The SOUND DRIVER in annotated assembler form that can
be modified, assembled and linked with any of your programs you
desire. You may NOT use it to market anything similar to my
product PC MUSIC MAKER.
In PC MUSIC MAKER I put hooks in the SOUNDDVR to flash the
AMBULANCE light from blue to red. I also put hooks in PURGER
to strip the title from the input buffer and save it for display
while the tune was playing.
You may also want to add sound commands. For instance, if you
want to make your PC 'TALK', the frequency change must be made
very quickly. This would require a change to the SPEAKER routine
of SOUNDDVR.
I have made a small change to my personal SOUNDDVR to change the
frequency by a designated amount (Znnn). This way I can make a
siren sound or a train whistle with a doppler effect.
The possibilities are endless once you know how the PC speaker
is controlled.